package com.cold.demo.template;

import cn.hutool.core.io.FileUtil;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.cold.demo.template.websocket.EnableMyWebSocket;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.bind.annotation.CrossOrigin;
import springfox.documentation.oas.annotations.EnableOpenApi;

import java.util.ArrayList;
import java.util.List;

@CrossOrigin(origins = {"http://192.168.8.107:8080"})
@EnableOpenApi
@EnableMyWebSocket
@SpringBootApplication
public class TemplateApplication  {

    private static final Logger log = LoggerFactory.getLogger(TemplateApplication.class);

    public static void main(String[] args) {

        ConfigurableApplicationContext context = SpringApplication.run(TemplateApplication.class);

        log.debug("===================================启动完成===================================");
        log.info("===================================启动完成===================================");
        log.warn("===================================启动完成===================================");
//        log.error("===================================启动完成===================================");
    }
}
